/*
 * @Author: 雷宇航
 * @Date: 2021-07-22 15:55:52
 * @LastEditTime: 2021-07-22 15:57:19
 * @LastEditors: 雷宇航
 * @Description: 
 * @FilePath: \icm-vue\src\utils\sorter.js
 */
/**
 * 排序
 * @param {*} property
 */
export function sorter(property) {
  return (a, b) => {
    return a[property] - b[property]
  }
}